package com.spring.client.controller;

import com.john.spring.hessian.service.AddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/addService")
public class AddServiceController {

	@Autowired
	AddService addService;

	@RequestMapping("/test")
	@ResponseBody
	public Object test() {
		long add = addService.add(4L, 5L);
		System.out.println("The result is " + add);
		return add;
	}

}